#!/usr/bin/env node

//采用async和await动态导入chalk模块
(async () => {
    const chalk=await import('chalk').default;
    const log=console.log;
    const circle=require('./03-export-function');
    const green=chalk.green;

    const c = circle(10);

    log(green(`area:         \t${c.area()}`));
    log(green(`circumference:\t${c.circumference()}`));
    
    log(module);


})();

